package com.zmn.oms.persistence.interfaces.redistribute;

import com.zmn.oms.model.entity.redistribute.OrderWorkRedistributeMaster;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface OrderWorkRedistributeMasterDao {
    int deleteByPrimaryKey(Long id);

    int insert(OrderWorkRedistributeMaster record);

    int insertSelective(OrderWorkRedistributeMaster record);

    OrderWorkRedistributeMaster selectByPrimaryKey(Long id);

    List<OrderWorkRedistributeMaster> selectByQuery(OrderWorkRedistributeMaster query);

    int updateByPrimaryKeySelective(OrderWorkRedistributeMaster record);

    int updateByPrimaryKey(OrderWorkRedistributeMaster record);

    Integer batchInsert(@Param("list") List<OrderWorkRedistributeMaster> redistributeMasterList);

    Integer updateStatusByRedistributeId(@Param("redistributeId") Long redistributeId, @Param("status") int status);

    OrderWorkRedistributeMaster findByRedistributeIdAndMasterId(@Param("redistributeId") Long redistributeId, @Param("masterId") Integer masterId);

    Integer deleteByCreateTimeAndStatus(@Param("createTime") Date createTime, @Param("status") int status);
}